import request from './index'

// 获取
export function getStudents() {
  return request.get('/students')
}
// 添加
export function addStudent(data) {
  return request.post('/addStudent', data)
}
// 更新
export function updateStudent(data) {
  return request.post('/updateStudent', data)
}
// 删除
export function deleteStudent(data) {
  return request.delete('/deleteStudent', {
    params: data
  })
}
